package top.jfunc.network.controller.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import top.jfunc.network.controller.BaseController;

import java.util.Map;

/**
 * @author xiongshiyan at 2019/5/7 , contact me with email yanshixiong@126.com or phone 15208384257
 */
@RestController("clientget")
@RequestMapping("/client/get")
public class GetController extends BaseController {

    //@Autowired
    private InterfaceForTestJfunc interfaceForTestJfunc;

    @GetMapping("get/{q}")
    public String getQuery(@PathVariable("q") String q){
        return interfaceForTestJfunc.list(q , 11).getBody();
    }
    @GetMapping("query/map")
    public String getQuery(@RequestParam  Map<String , String> map){
        return interfaceForTestJfunc.queryMap(map).getBody();
    }
}
